<?
require_once 'classes/ScanAndAdd.php';

$scan = new ScanAndAdd();

$page_id = $_GET['page_id'];
$dir = $_POST['form_scan_dir'];

switch (@$_GET['act']){
			 default:
			 			$output = $scan->scan($dir);		
}
// generate menu
?>